package com.crm.jpaandthymeleaf.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * @author 周敬
 * @version 1.0
 * @packageName com.crm.jpaandthymeleaf.entity
 * @fileName CstService
 * @createTime 2021/12/15-20:19-星期三
 * @lastModify 2021/12/15-20:19-星期三
 */
@Entity
@Table(name = "cst_service", schema = "crm", catalog = "")
public class CstService {
    private Long svrId;
    private String svrType;
    private String svrTitle;
    private String svrCustNo;
    private String svrCustName;
    private String svrStatus;
    private String svrRequest;
    private Long svrCreateId;
    private String svrCreateBy;
    private Timestamp svrCreateDate;
    private Long svrDueId;
    private String svrDueTo;
    private Timestamp svrDueDate;
    private String svrDeal;
    private Long svrDealId;
    private String svrDealBy;
    private Timestamp svrDealDate;
    private String svrResult;
    private Integer svrSatisfy;

    @Id
    @Column(name = "svr_id")
    public Long getSvrId() {
        return svrId;
    }

    public void setSvrId(Long svrId) {
        this.svrId = svrId;
    }

    @Basic
    @Column(name = "svr_type")
    public String getSvrType() {
        return svrType;
    }

    public void setSvrType(String svrType) {
        this.svrType = svrType;
    }

    @Basic
    @Column(name = "svr_title")
    public String getSvrTitle() {
        return svrTitle;
    }

    public void setSvrTitle(String svrTitle) {
        this.svrTitle = svrTitle;
    }

    @Basic
    @Column(name = "svr_cust_no")
    public String getSvrCustNo() {
        return svrCustNo;
    }

    public void setSvrCustNo(String svrCustNo) {
        this.svrCustNo = svrCustNo;
    }

    @Basic
    @Column(name = "svr_cust_name")
    public String getSvrCustName() {
        return svrCustName;
    }

    public void setSvrCustName(String svrCustName) {
        this.svrCustName = svrCustName;
    }

    @Basic
    @Column(name = "svr_status")
    public String getSvrStatus() {
        return svrStatus;
    }

    public void setSvrStatus(String svrStatus) {
        this.svrStatus = svrStatus;
    }

    @Basic
    @Column(name = "svr_request")
    public String getSvrRequest() {
        return svrRequest;
    }

    public void setSvrRequest(String svrRequest) {
        this.svrRequest = svrRequest;
    }

    @Basic
    @Column(name = "svr_create_id")
    public Long getSvrCreateId() {
        return svrCreateId;
    }

    public void setSvrCreateId(Long svrCreateId) {
        this.svrCreateId = svrCreateId;
    }

    @Basic
    @Column(name = "svr_create_by")
    public String getSvrCreateBy() {
        return svrCreateBy;
    }

    public void setSvrCreateBy(String svrCreateBy) {
        this.svrCreateBy = svrCreateBy;
    }

    @Basic
    @Column(name = "svr_create_date")
    public Timestamp getSvrCreateDate() {
        return svrCreateDate;
    }

    public void setSvrCreateDate(Timestamp svrCreateDate) {
        this.svrCreateDate = svrCreateDate;
    }

    @Basic
    @Column(name = "svr_due_id")
    public Long getSvrDueId() {
        return svrDueId;
    }

    public void setSvrDueId(Long svrDueId) {
        this.svrDueId = svrDueId;
    }

    @Basic
    @Column(name = "svr_due_to")
    public String getSvrDueTo() {
        return svrDueTo;
    }

    public void setSvrDueTo(String svrDueTo) {
        this.svrDueTo = svrDueTo;
    }

    @Basic
    @Column(name = "svr_due_date")
    public Timestamp getSvrDueDate() {
        return svrDueDate;
    }

    public void setSvrDueDate(Timestamp svrDueDate) {
        this.svrDueDate = svrDueDate;
    }

    @Basic
    @Column(name = "svr_deal")
    public String getSvrDeal() {
        return svrDeal;
    }

    public void setSvrDeal(String svrDeal) {
        this.svrDeal = svrDeal;
    }

    @Basic
    @Column(name = "svr_deal_id")
    public Long getSvrDealId() {
        return svrDealId;
    }

    public void setSvrDealId(Long svrDealId) {
        this.svrDealId = svrDealId;
    }

    @Basic
    @Column(name = "svr_deal_by")
    public String getSvrDealBy() {
        return svrDealBy;
    }

    public void setSvrDealBy(String svrDealBy) {
        this.svrDealBy = svrDealBy;
    }

    @Basic
    @Column(name = "svr_deal_date")
    public Timestamp getSvrDealDate() {
        return svrDealDate;
    }

    public void setSvrDealDate(Timestamp svrDealDate) {
        this.svrDealDate = svrDealDate;
    }

    @Basic
    @Column(name = "svr_result")
    public String getSvrResult() {
        return svrResult;
    }

    public void setSvrResult(String svrResult) {
        this.svrResult = svrResult;
    }

    @Basic
    @Column(name = "svr_satisfy")
    public Integer getSvrSatisfy() {
        return svrSatisfy;
    }

    public void setSvrSatisfy(Integer svrSatisfy) {
        this.svrSatisfy = svrSatisfy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CstService that = (CstService) o;
        return Objects.equals(svrId, that.svrId) && Objects.equals(svrType, that.svrType) && Objects.equals(svrTitle, that.svrTitle) && Objects.equals(svrCustNo, that.svrCustNo) && Objects.equals(svrCustName, that.svrCustName) && Objects.equals(svrStatus, that.svrStatus) && Objects.equals(svrRequest, that.svrRequest) && Objects.equals(svrCreateId, that.svrCreateId) && Objects.equals(svrCreateBy, that.svrCreateBy) && Objects.equals(svrCreateDate, that.svrCreateDate) && Objects.equals(svrDueId, that.svrDueId) && Objects.equals(svrDueTo, that.svrDueTo) && Objects.equals(svrDueDate, that.svrDueDate) && Objects.equals(svrDeal, that.svrDeal) && Objects.equals(svrDealId, that.svrDealId) && Objects.equals(svrDealBy, that.svrDealBy) && Objects.equals(svrDealDate, that.svrDealDate) && Objects.equals(svrResult, that.svrResult) && Objects.equals(svrSatisfy, that.svrSatisfy);
    }

    @Override
    public int hashCode() {
        return Objects.hash(svrId, svrType, svrTitle, svrCustNo, svrCustName, svrStatus, svrRequest, svrCreateId, svrCreateBy, svrCreateDate, svrDueId, svrDueTo, svrDueDate, svrDeal, svrDealId, svrDealBy, svrDealDate, svrResult, svrSatisfy);
    }
}
